package me.keiwu.pub.data.enums;

import lombok.Getter;

/**
 * Created by kei on 05/02/2018.
 */
public enum NoticeType {

    STEAL_GOLD(0),

    COMMENT(1),

    CHALLENGE(2),

    ;

    @Getter
    private int type;

    NoticeType(int type) {
        this.type = type;
    }


    public static NoticeType parse(int noticeType) {
        for (NoticeType type : NoticeType.values()) {
            if (type.getType() == noticeType) {
                return type;
            }
        }
        return null;
    }


}
